
add_subdirectory(base)
add_subdirectory(ip)
add_subdirectory(icmp)
add_subdirectory(libtcp)
add_subdirectory(tcp)
add_subdirectory(udp)
add_subdirectory(user)
add_subdirectory(file)

set (STREAM_INCLUDES
    paf.h
    stream_api.h
    stream_splitter.h
)

add_library( stream STATIC
    flush_bucket.cc
    flush_bucket.h
    paf.cc
    stream.h
    stream_api.cc
    stream_inspectors.cc
    stream_inspectors.h
    stream_splitter.cc
)

target_link_libraries( stream
    stream_base
    stream_ip
    stream_icmp
    stream_libtcp
    stream_tcp
    stream_udp
    stream_user
    stream_file
    protocols
)

install (FILES ${STREAM_INCLUDES}
    DESTINATION "${INCLUDE_INSTALL_PATH}/stream"
)
